package cn.edu.scau.cmi.wujiaxian.exercise3;

import java.util.Scanner;

public class Practice {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		double sum = 0;
		int m = 0;
		while (reader.hasNextDouble()) {
			double x = reader.nextDouble();
			m = m + 1;
			sum = sum + x;
		}
		System.out.printf("%d�����ĺ�Ϊ%f\n", m, sum);
		System.out.printf("%d������ƽ��ֵ��%f\n", m, sum / m);
		reader.close();
	}
}
